from tkinter import *
PosX = int(input('Введите X:'))
PosY = int(input('Введите Y:'))
N = int(input('Увеличить в'))
Coords = [[0,0],[0,20],[10,20],[10,30],[20,30],[20,10],[10,10],[10,0],[0,0]]
FinalCoords = [None] * 18
Index = 0
Broke = False
for Coord in Coords:
    X = Coord[0] * N + PosX
    Y = Coord[1] * N + PosY
    FinalCoords[Index] = X
    Index += 1
    FinalCoords[Index] = Y
    Index += 1
    if X > 500 or Y > 500 or N == 0:
        Broke = True
if Broke == False:
    Root = Tk()
    Root.title('IT Марафон')
    Root.geometry('500x500')
    Canvass = Canvas(bg = 'darkolivegreen2', width = 500, height = 500)

    Canvass.pack(anchor = CENTER, expand = 1)
    Canvass.create_polygon(FinalCoords)
    Root.mainloop()
else:
    print('Что-то пошло не так :(')
